<template>
  <div>
    <sg-table>
        <template v-slot:index="scope">
        {{scope.index}}
      </template>
        <template v-slot:named="scope">
        {{scope.allNname}}
      </template>
       <template v-slot:aged="scope">
        {{scope.age}}
      </template>
       <template v-slot="scope">
        <img :src="scope.imgUrl" alt="" />
      </template>
      <!-- 老版本作用域插槽写法 -->
      <!-- <template slot-scope="scope"><img :src="scope.imgUrl" alt="" /></template> -->
    </sg-table>
  </div>

</template>

<script>
import SgTable from '@/components/sg-table.vue'
export default {
  data () {
    return {}
  },

  created () {},
  components: {
    SgTable
  },
  methods: {}
}
</script>

<style scoped>
</style>
